package edu.zju.udms.dnavigator.entities.mongodb;

import edu.zju.udms.dnavigator.core.entity.AttributeType;
import edu.zju.udms.dnavigator.core.entity.AttributeTypeEnum;
import edu.zju.udms.dnavigator.core.entity.Entity;
import edu.zju.udms.dnavigator.core.entity.GeneralType;
import static edu.zju.udms.dnavigator.entities.mongodb.MongoDBExtractor.SOURCE;
public class MongoDBDatabase extends Entity{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 8881964989063372796L;

	@AttributeType(AttributeTypeEnum.Key)
	public String hostName;
	
	@AttributeType(AttributeTypeEnum.Normal)
	public int collections;
	
	@AttributeType(AttributeTypeEnum.Normal)
	public long objects;
	
	@AttributeType(AttributeTypeEnum.Normal)
	public String dataSize;

	public MongoDBDatabase(){}
	
	public MongoDBDatabase(String hostName,String name,int collections,long objects,String dataSize){
		super(name, name, GeneralType.Database,SOURCE, 0,0, null,name,null);
		this.hostName=hostName;
		this.collections=collections;
		this.objects=objects;
		this.dataSize=dataSize;
	}

	public String getHostName() {
		return hostName;
	}

	public void setHostName(String hostName) {
		this.hostName = hostName;
	}

	public int getCollections() {
		return collections;
	}

	public void setCollections(int collections) {
		this.collections = collections;
	}

	public long getObjects() {
		return objects;
	}

	public void setObjects(long objects) {
		this.objects = objects;
	}

	public String getDataSize() {
		return dataSize;
	}

	public void setDataSize(String dataSize) {
		this.dataSize = dataSize;
	}
	
}
